package com.hopu.mapper;

import com.hopu.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {
    List<Role> findAllJsName();

    List<Role> findAllJs();

    int addJs(@Param("jname") String jname);

    int updateJs(@Param("jname") String jname, @Param("jid") Integer jid);

    Role findJsByNameOrId(@Param("jname") String jname, @Param("jid") Integer jid);

}
